<template>
  <uni-page-wrapper>
    <uni-page-body class="body">
      <uni-view data-v-ec952aa2="" class="paddingView">
        <uni-view data-v-ec952aa2="" class="whiteView">
          <uni-view data-v-ec952aa2="" class="title">{{ title }}</uni-view>
          <uni-view data-v-ec952aa2="" class="msg" v-html='content'>
          </uni-view>
        </uni-view>
      </uni-view>
    </uni-page-body>
  </uni-page-wrapper>
</template>

<script>
export default {
  data() {
    return {
      title: "",
	  content:'',
      type: "", //接收上一个页面传来的参数
      textList: [],
    };
  },
  onLoad(option) {
    // this.type = option.type;
    // const editItem = JSON.parse(decodeURIComponent(option.type));
  },
  mounted() {
    this.initTextList();
  },
  methods: {
    initTextList() {
		var newsMsg = uni.getStorageSync('newsMsg')
		this.title = newsMsg.title
		this.content = newsMsg.content
    },
  },
};
</script>

<style>
@import url(./news.css);
</style>